package io.renren.config;

public enum ErrorCodeEnum {
    VERSION_NO_NOT_EXIST("400", "版本号不能为空"),
    DATA_NOT_EXIST("DATA_NOT_EXIST", "数据不存在"),
    USER_NOT_EXIST("USER_NOT_EXIST", "用户不存在"),
    USER_PASS_FALSE("USER_PASS_FALSE", "用户名或密码错误"),
    USER_NOT_LOGIN("401", "用户未登录"),
    NO_PERMISSION("NO_PERMISSION", "权限不足"),
    SITUATION_NOT_EXIST("4", "情景不存在"),
    SITUATION_NAME_EXIST("SITUATION_NAME_EXIST", "情景名称已存在"),
    TASK_NOT_EXIST("6", "改善任务不存在"),
    NOTICE_TEMPLATE_NOT_EXIST("NOTICE_TEMPLATE_NOT_EXIST","消息模板未配置"),
    CHECK_GROUP_EMPTY("CHECK_GROUP_EMPTY", "查核组未选择"),
    PLAN_HAS_START("PLAN_HAS_START", "计划已开始"),
    HOSP_NOT_EXIST("HOSP_NOT_EXIST", "用户医院不存在"),
    FILE_UPLOAD("7", "图片上传失败"),
    FILE_EMP("8", "上传内容不能为空"),
    PLAN_NOT_EXIST("PLAN_NOT_EXIST", "计划不存在"),
    CHECK_DETAIL_NOT_EXIST("9", "查核项不存在"),
    PLAN_CAN_NOT_ADVANCE("PLAN_CAN_NOT_ADVANCE", "本计划不能提前开始"),
    PLAN_CAN_NOT_ADD("PLAN_CAN_NOT_ADD", "本情景已结束不能新增"),
    MODIFY_PASSWORD_ERROR_NOT_EQUAL("10", "两次输入密码不相同"),
    RESPONSIBLE_USER_NOT_EXIST("500", "批量查核前，请选择某个查核项的当事人"),
    RESPONSIBLE_USER_NEED_CHECKER("500", "非查核组员不允许分配当事人"),
    NOTICE_TIME_ERROR("500", "计划提前提醒时间不正确"),
    PARAM_ERROR("500", "参数错误"),
    ;

    private String code;

    private String description;

    ErrorCodeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

}
